x11: Make selection handling work across screens
authorMatthias Clasen <mclasen@redhat.com>
Tue, 28 Jul 2015 03:18:27 +0000 (23:18 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 28 Jul 2015 03:20:53 +0000 (23:20 -0400)
commit55edc81c10742bf3e410168f6dc317f8aca05938
tree5473149ea2bada64124be030f05764e25200d7f2
parent1b43c3f493e577688b22e6c0383d7a1695b66cbc
x11: Make selection handling work across screens

When dealing with selection events, we might see windows from
other screens in the requestor field. The current x11 backend
code fails to wrap these in a foreign GdkWindow, since we
don't have the corresponding GdkScreen anymore. Work around
this by creating such 'foreign screens' on demand. We still
maintain the 1:1 relation between the display and the screen
returned by gdk_display_get_default_screen().

https://bugzilla.gnome.org/show_bug.cgi?id=721398
gdk/x11/gdkdisplay-x11.c
gdk/x11/gdkdisplay-x11.h